<!-- 绿色通道 - 患者列表 - 医疗记录 - 辅助检查 界面 -->
<template>
  <div id="box">
    <div style="width: 100%;border-bottom: 1px solid #DFDEE3;margin: -11px 0px 10px 0px" />
    <!-- <div id="summaryCount" class="tab-content tab_content_div" style="margin-top: 100px" /> -->
    <div v-show="accessory_examination.length === 0">
      <center>
        <h3>无数据</h3>
      </center>
    </div>
    <div class="pr-5 mr-10 textR">
      <el-button @click="getElectrocardiograph()">获取心电图机数据</el-button>
      <el-button type="primary" @click="dialogVisible = true">新增</el-button>
    </div>

    <el-dialog title="新增检查" :visible.sync="dialogVisible" width="80%">
      <div id="addRef" ref="addRef">
        <el-form ref="newExamine" :model="newExamine" label-width="120px">
          <el-row>
            <el-col :span="24">
              <el-form-item label="检查类型" prop="inspectionType">
                <el-select v-model="newExamine.inspectionType" placeholder="请选择" @change="clearExamineform()">
                  <el-option label="心电图" value="心电图" class="required-field" />
                  <el-option label="CT" value="CT" :class="requireArray.includes('CT') ? 'required-field' : ''" />
                  <el-option label="超声" value="超声" :class="requireArray.includes('超声') ? 'required-field' : ''" />
                  <el-option label="MRI" value="MRI" :class="requireArray.includes('MRI') ? 'required-field' : ''" />
                  <el-option label="远程心电图" value="远程心电图" />
                </el-select>
              </el-form-item>
            </el-col>
            <el-col v-if="newExamine.inspectionType == '心电图'" :span="24">
              <el-col :span="12">
                <el-form-item label="检查开始" prop="uploadTime" :required="newExamine.inspectionType == '心电图' && newExamine.other_x_type!= 1">
                  <el-date-picker
                    v-model="newExamine.uploadTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                    :disabled="newExamine.other_x_type === '1'"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="诊断时间" prop="diagnosticTime" :required="newExamine.inspectionType == '心电图'&& newExamine.other_x_type!= 1">
                  <el-date-picker
                    v-model="newExamine.diagnosticTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                    :disabled="newExamine.other_x_type === '1'"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="19">
                <el-form-item label="心电印象" prop="impression">
                  <el-input v-model="newExamine.impression" :disabled="newExamine.other_x_type === '1'" />
                  <!-- <div class="el-input__inner" style="height: auto;min-height: 40px;">
                    {{ newExamine.impression }}
                  </div> -->
                </el-form-item>
              </el-col>
              <el-col :span="3">
                <el-form-item label-width="0">
                  <el-button
                    class="ml-10"
                    @click="impressPublic('ECG_impression_dialog', newExamine.impression, undefined)"
                  >选择</el-button>
                </el-form-item>
              </el-col>
            </el-col>
            <el-col v-if="newExamine.inspectionType == 'CT'" :span="24">
              <el-col :span="12">
                <el-form-item label="通知CT室" prop="informtime" required>
                  <el-date-picker
                    v-model="newExamine.informtime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="CT室完成准备" prop="poisetime" required>
                  <el-date-picker
                    v-model="newExamine.poisetime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="CT室扫描开始" prop="uploadTime">
                  <el-date-picker
                    v-model="newExamine.uploadTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="报告时间" prop="diagnosticTime">
                  <el-date-picker
                    v-model="newExamine.diagnosticTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="19">
                <el-form-item label="印象">
                  <!-- <el-input v-model="item.impression" disabled /> -->
                  <div class="el-input__inner wid80" style="height: auto;min-height: 40px;">{{ newExamine.impression }}
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="3">
                <el-form-item>
                  <el-button
                    @click="impressPublic('CT_impression_dialog', newExamine.impression, undefined)"
                  >选择</el-button>
                </el-form-item>
              </el-col>
            </el-col>
            <el-col v-if="newExamine.inspectionType == '超声'" :span="24">
              <el-col :span="12">
                <el-form-item label="通知超声室" prop="informtime">
                  <el-date-picker
                    v-model="newExamine.informtime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="检查开始" prop="uploadTime">
                  <el-date-picker
                    v-model="newExamine.uploadTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="检查结果" prop="diagnosticTime">
                  <el-date-picker
                    v-model="newExamine.diagnosticTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="19">
                <el-form-item label="印象">
                  <div class="el-input__inner wid80" style="height: auto;min-height: 40px;">
                    {{ impressionMapShow(newExamine.impression, 'ultMap') }}
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="2">
                <el-form-item><el-button
                  @click="impressPublic('Ult_impression_dialog', newExamine.impression, undefined);"
                >选择</el-button></el-form-item>
              </el-col>
            </el-col>
            <el-col v-if="newExamine.inspectionType == 'MRI'" :span="24">
              <el-col :span="12">
                <el-form-item label="开具单据" prop="informtime">
                  <el-date-picker
                    v-model="newExamine.informtime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="检查开始" prop="uploadTime">
                  <el-date-picker
                    v-model="newExamine.uploadTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="报告完成" prop="diagnosticTime">
                  <el-date-picker
                    v-model="newExamine.diagnosticTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="19">
                <el-form-item label="MRI印象">
                  <el-input v-model="newExamine.impression" placeholder="请输入印象" />
                </el-form-item>
              </el-col>
            </el-col>
            <el-col v-if="newExamine.inspectionType != '远程心电图'" :span="24">
              <el-form-item label="检查图片" prop="imgUrl" :required="newExamine.inspectionType == '心电图' && newExamine.other_x_type!=  1">
                <el-upload
                  class="avatar-uploader"
                  action="#"
                  list-type="text"
                  :on-change="imgUpload"
                  :auto-upload="false"
                  :show-file-list="false"
                  :disabled="newExamine.other_x_type === '1'"
                >
                  <img v-if="newExamine.imgUrl" :src="newExamine.imgUrl"  class="avatar">
                  <i v-else class="el-icon-plus avatar-uploader-icon" :style="newExamine.other_x_type === '1'?'background:rgb(245,247,250)':''" />
                </el-upload>
              </el-form-item>
              <el-form-item>
                <el-checkbox-group v-model="newExamine.other_x_type">
                  <el-checkbox v-if="newExamine.inspectionType == '心电图'" true-label="1" false-label="0">未获得心电图</el-checkbox>
                </el-checkbox-group>
              </el-form-item>
            </el-col>
            <el-col v-if="newExamine.inspectionType != '远程心电图'" :span="18">
              <el-form-item
                :label="(newExamine.inspectionType == '心电图' && newExamine.other_x_type == 1) ? '未获得原因' : '备注'"
                prop="remark"
                :required="newExamine.other_x_type == 1"
              >
                <el-input
                  v-model="newExamine.remark"
                  :placeholder="(newExamine.inspectionType == '心电图' && newExamine.other_x_type == 1) ? '未获得原因' : '备注'"
                />
              </el-form-item>
            </el-col>
            <el-col v-if="newExamine.inspectionType == '远程心电图'">
              <el-col :span="24">
                <el-form-item label="远程心电传输" prop="remoteStat" required>
                  <el-radio v-model="newExamine.remoteStat" size="mini" label="1">接收120/网络医院心电图</el-radio>
                  <el-radio v-model="newExamine.remoteStat" size="mini" label="0">未传输</el-radio>
                </el-form-item>
              </el-col>
              <el-col v-if="newExamine.remoteStat == 1" :span="12">
                <el-form-item label="接收120/网络医院心电图时间" label-width="200px" prop="remoteTime">
                  <el-date-picker
                    v-model="newExamine.remoteTime"
                    size="mini"
                    type="datetime"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    placeholder="选择日期时间"
                  />
                </el-form-item>
              </el-col>
              <el-col v-if="newExamine.remoteStat == 1" :span="12">
                <el-form-item label="传输方式" prop="remoteType">
                  <el-select v-model="newExamine.remoteType" size="mini" placeholder="请选择传输方式">
                    <el-option label="实时监控" value="1" />
                    <el-option label="微信群" value="2" />
                    <el-option label="其他" value="9" />
                  </el-select>
                </el-form-item>
              </el-col>
            </el-col>
            <el-col :span="24"><el-divider /></el-col>
          </el-row>

        </el-form>

      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="saveCheck(newExamine,1)">确 定</el-button>
      </span>
    </el-dialog> <!-- 新增弹窗 -->

    <el-form class="demo-form-inline" label-width="100px">
      <!--
					心电图模块
			-->
      <!-- <span class="mr-10">{{item.hospital}}</span> -->
      <div v-for="(item, index) in ECG_list" :key="item.updatedAt + index" class="pageDateStyle">
        <el-card shadow="never" style="background: #eee;">
          <div class="dataTitleStyle">
            <div class="fl"><b>心电图</b></div>
            <div class="fr">
              <el-button type="primary" size="small" class="ml-10" @click="saveCheck(item,2)">保存</el-button>
            </div>
            <div class="fr">
              <span class="mr-10">{{ item.updatedAt }}</span>

              <span class="mr-10">{{ item.department }}</span>
              <span class="mr-10">{{ item.userName }}</span>
            </div>
          </div>
          <div class="AData">
            <!-- <el-col :span="10">
              <el-form-item label="开具单据">
                <el-date-picker v-model="item.openerTime" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="" />
              </el-form-item>
            </el-col> -->
            <el-col :span="10">
              <el-form-item label="检查开始"  :required="item.other_x_type !== '1'">
                <el-date-picker
                  v-model="item.uploadTime"
                  format="yyyy-MM-dd HH:mm:ss"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  type="datetime"
                  placeholder=""
                  :disabled="item.other_x_type === '1'"
                />
              </el-form-item>
            </el-col>
            <el-col :span="10">
              <el-form-item label="诊断时间" :required="item.other_x_type !== '1'">
                <el-date-picker
                  v-model="item.diagnosticTime"
                  format="yyyy-MM-dd HH:mm:ss"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  type="datetime"
                  placeholder=""
                  :disabled="item.other_x_type === '1'"
                />
              </el-form-item>
            </el-col>
            <el-col :span="19">
              <el-form-item label="心电印象">
                <el-input v-model="item.impression" :disabled="item.other_x_type === '1'" />
                <!-- <div class="el-input__inner wid80" style="height: auto;min-height: 40px;">
                  {{ item.impression }}
                </div> -->
              </el-form-item>
            </el-col>
            <el-col :span="3">
              <el-form-item>
                <el-button :disabled="item.other_x_type === '1'" @click="impressPublic('ECG_impression_dialog', item.impression, index)">选择</el-button>
              </el-form-item>
            </el-col>
            <!-- <el-col :span="19">
              <div style="width: 15%;margin-left: 15px">
                <el-image :src="item.imgUrl" alt="" width="150" height="150" />
              </div>
            </el-col> -->
            <el-col :span="24">
              <el-col :span="8" style="position: relative;">
                <el-form-item label="检查图片" :required="item.other_x_type !== '1'">
                  <el-image
                    :src="item.imgUrl"
                    alt=""
                    :preview-src-list="[item.imgUrl]"
                    class="showImgStyle"
                    style="height: 100%;  vertical-align: bottom;"
                    @click.stop="handleClick"
                  >
                    <div slot="placeholder" class="image-slot ml-10">
                      加载中<span class="dot">...</span>
                    </div>
                  </el-image>
                  <el-upload
                    class="modifyImgBtn"
                    action="#"
                    list-type="text"
                    :on-change="(res, file) => { imgModify(res, file, item) }"
                    :auto-upload="false"
                    :show-file-list="false"
                  >
                    <el-button size="small" :disabled="item.other_x_type === '1' ">点击上传</el-button>
                  </el-upload>
                </el-form-item>
              </el-col>
            </el-col>
            <el-col :span="19">
              <el-form-item>
                <el-checkbox-group v-model="item.other_x_type">
                  <el-checkbox v-if="item.inspectionType == '心电图'" true-label="1" false-label="0">未获得心电图</el-checkbox>
                </el-checkbox-group>
              </el-form-item>
            </el-col>

            <el-col :span="19">
              <el-form-item :label="item.other_x_type == '1' ? '未获得原因' : '备注'" :required="item.other_x_type == '1'">
                <el-input v-model="item.remark" />
              </el-form-item>
            </el-col>

            <el-col :span="24">
              <el-divider />
            </el-col>
          </div>
        </el-card>
      </div>
      <!--
						心电图模块-End
			-->
      <!-- CT模块 -->
      <!-- <span class="mr-10">{{item.hospital}}</span> -->
      <div v-for="(item, index) in CT_list" :key="item.updatedAt + index" class="pageDateStyle">
        <el-card shadow="never" style="background: #eee;">
          <div class="dataTitleStyle">
            <div class="fl"><b>CT</b></div>
            <div class="fr"><el-button type="primary" size="small" class="ml-10" @click="saveCheck(item,2)">保存</el-button>
            </div>
            <div class="fr">
              <span class="mr-10">{{ item.updatedAt }}</span>

              <span class="mr-10">{{ item.department }}</span>
              <span class="mr-10">{{ item.userName }}</span>
            </div>
          </div>
          <div class="AData">
            <el-row>
              <el-col :span="10">
                <el-form-item label="通知CT室" label-width="120px">
                  <el-date-picker
                    v-model="item.informtime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="10">
                <el-form-item label="CT室完成准备" label-width="120px">
                  <el-date-picker
                    v-model="item.poisetime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="10">
                <el-form-item label="CT室扫描开始" label-width="120px">
                  <el-date-picker
                    v-model="item.uploadTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="10">
                <el-form-item label="CT报告" label-width="120px">
                  <el-date-picker
                    v-model="item.diagnosticTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="9">
                <el-form-item label="CT印象" label-width="120px">
                  <div class="el-input__inner wid80" style="height: auto;min-height: 40px;">
                    {{ item.impression }}
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="2">
                <el-form-item><el-button
                  @click="impressPublic('CT_impression_dialog', item.impression, index);"
                >选择</el-button></el-form-item>
              </el-col>
            </el-row>
            <!-- <el-col :span="24">
              <div style="width: 15%;margin-left: 15px"><el-image :src="item.imgUrl" alt="" width="150" height="150" /></div>
            </el-col> -->
            <el-col :span="24">
              <el-col :span="8" style="position: relative;">
                <el-form-item label="图片" label-width="120px">
                  <el-image
                    :src="item.imgUrl"
                    alt=""
                    :preview-src-list="[item.imgUrl]"
                    class="showImgStyle"
                    style="height: 100%;  vertical-align: bottom;"
                    @click.stop="handleClick"
                  >
                    <div slot="placeholder" class="image-slot ml-10">
                      加载中<span class="dot">...</span>
                    </div>
                  </el-image>
                  <el-upload
                    class="modifyImgBtn"
                    action="#"
                    list-type="text"
                    :on-change="(res, file) => { imgModify(res, file, item) }"
                    :auto-upload="false"
                    :show-file-list="false"
                  >

                    <el-button size="small">点击上传</el-button>
                  </el-upload>
                </el-form-item>
              </el-col>
            </el-col>
            <el-col :span="24"><el-divider /></el-col>
          </div>
        </el-card>
      </div>
      <!-- CT模块-End -->

      <!-- 超声 -->
      <!-- <span class="mr-10">{{item.hospital}}</span> -->
      <div v-for="(item, index) in Ultrasound_list" :key="item.updatedAt + index" class="pageDateStyle">
        <el-card shadow="never" style="background: #eee;">
          <div class="dataTitleStyle">
            <div class="fl"><b>超声</b></div>
            <div class="fr"><el-button type="primary" size="small" class="ml-10" @click="saveCheck(item,2)">保存</el-button>
            </div>
            <div class="fr">
              <span class="mr-10">{{ item.updatedAt }}</span>

              <span class="mr-10">{{ item.department }}</span>
              <span class="mr-10">{{ item.userName }}</span>
            </div>
          </div>
          <div class="AData">
            <el-row>
              <el-col :span="10">
                <el-form-item label="通知超声室">
                  <el-date-picker
                    v-model="item.informtime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="10">
                <el-form-item label="检查开始">
                  <el-date-picker
                    v-model="item.uploadTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="10">
                <el-form-item label="检查结果">
                  <el-date-picker
                    v-model="item.diagnosticTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="9">
                <el-form-item label="印象">
                  <div class="el-input__inner wid80" style="height: auto;min-height: 40px;">
                    {{ impressionMapShow(item.impression, 'ultMap') }}
                    <!-- {{ item.impression }} -->
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="2">
                <el-form-item><el-button
                  @click="impressPublic('Ult_impression_dialog', item.impression, index);"
                >选择</el-button></el-form-item>
              </el-col>
            </el-row>
            <!-- <el-col :span="24">
              <div style="width: 15%;margin-left: 15px"><el-image :src="item.imgUrl" alt="" width="150" height="150" /></div>
            </el-col> -->
            <el-col :span="24">
              <el-col :span="8" style="position: relative;">
                <el-form-item label="图片">
                  <el-image
                    :src="item.imgUrl"
                    alt=""
                    :preview-src-list="[item.imgUrl]"
                    class="showImgStyle"
                    style="height: 100%;  vertical-align: bottom;"
                    @click.stop="handleClick"
                  >
                    <div slot="placeholder" class="image-slot ml-10">
                      加载中<span class="dot">...</span>
                    </div>
                  </el-image>
                  <el-upload
                    class="modifyImgBtn"
                    action="#"
                    list-type="text"
                    :on-change="(res, file) => { imgModify(res, file, item) }"
                    :auto-upload="false"
                    :show-file-list="false"
                  >
                    <el-button size="small">点击上传</el-button>
                  </el-upload>
                </el-form-item>
              </el-col>
            </el-col>
            <el-col :span="24"><el-divider /></el-col>
          </div>
        </el-card>
      </div>
      <!-- 超声-End -->

      <!-- MRI模块 -->
      <!-- <span class="mr-10">{{item.hospital}}</span> -->
      <div v-for="(item, index) in MRI_list" :key="item.updatedAt + index" class="pageDateStyle">
        <el-card shadow="never" style="background: #eee;">
          <div class="dataTitleStyle">
            <div class="fl"><b>MRI</b></div>
            <div class="fr"><el-button type="primary" size="small" class="ml-10" @click="saveCheck(item,2)">保存</el-button>
            </div>
            <div class="fr">
              <span class="mr-10">{{ item.updatedAt }}</span>

              <span class="mr-10">{{ item.department }}</span>
              <span class="mr-10">{{ item.userName }}</span>
            </div>
          </div>
          <div class="AData">
            <el-row>
              <el-col :span="10">
                <el-form-item label="开具单据">
                  <el-date-picker
                    v-model="item.openerTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="10">
                <el-form-item label="检查开始">
                  <el-date-picker
                    v-model="item.uploadTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="10">
                <el-form-item label="报告完成">
                  <el-date-picker
                    v-model="item.diagnosticTime"
                    format="yyyy-MM-dd HH:mm:ss"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetime"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="9">
                <el-form-item label="CT印象">
                  <el-input v-model="item.impression" />
                </el-form-item>
              </el-col>
            </el-row>
            <!-- <el-col :span="24">
              <div style="width: 15%;margin-left: 15px"><el-image :src="item.imgUrl" alt="" width="150" height="150" /></div>
            </el-col> -->
            <el-col :span="24">
              <el-col :span="8" style="position: relative;">
                <el-form-item label="图片">
                  <el-image
                    :src="item.imgUrl"
                    alt=""
                    :preview-src-list="[item.imgUrl]"
                    class="showImgStyle"
                    style="height: 100%;  vertical-align: bottom;"
                    @click.stop="handleClick"
                  >
                    <div slot="placeholder" class="image-slot ml-10">
                      加载中<span class="dot">...</span>
                    </div>
                  </el-image>
                  <el-upload
                    class="modifyImgBtn"
                    action="#"
                    list-type="text"
                    :on-change="(res, file) => { imgModify(res, file, item) }"
                    :auto-upload="false"
                    :show-file-list="false"
                  >
                    <el-button size="small">点击上传</el-button>
                  </el-upload>
                </el-form-item>
              </el-col>
            </el-col>
            <el-col :span="24"><el-divider /></el-col>
          </div>
        </el-card>
      </div>
      <!-- MRI模块-End -->
      <!-- 远程心电图 -->
      <div v-for="(item, index) in REMOTE_list" :key="item.updatedAt + index" class="pageDateStyle">
        <el-card shadow="never" style="background: #eee;">
          <div class="dataTitleStyle">
            <div class="fl"><b>远程心电图</b></div>
            <div class="fr"><el-button type="primary" size="small" class="ml-10" @click="saveCheck(item,2)">保存</el-button>
            </div>
            <div class="fr">
              <span class="mr-10">{{ item.updatedAt }}</span>
              <span class="mr-10">{{ item.department }}</span>
              <span class="mr-10">{{ item.userName }}</span>
            </div>
          </div>
          <div class="AData">
            <el-row>
              <el-col :span="24">
                <el-form-item label="远程心电传输" label-width="210px" required>
                  <el-radio-group v-model="item.remoteStat" size="mini">
                    <el-radio label="1">接收120/网络医院心电图</el-radio>
                    <el-radio label="0">未传输</el-radio>
                  </el-radio-group>
                </el-form-item>
              </el-col>
              <el-col v-if="item.remoteStat == 1" :span="12">
                <el-form-item label="接收120/网络医院心电图时间" label-width="210px" required>
                  <el-date-picker
                    v-model="item.remoteTime"
                    size="mini"
                    type="datetime"
                    value-format="yyyy-MM-dd HH:mm:ss"
                    placeholder="选择日期时间"
                  />
                </el-form-item>
              </el-col>
              <el-col v-if="item.remoteStat == 1" :span="12">
                <el-form-item label="传输方式" required>
                  <el-select v-model="item.remoteType" size="mini" placeholder="请选择传输方式">
                    <el-option label="实时监控" value="1" />
                    <el-option label="微信群" value="2" />
                    <el-option label="其他" value="9" />
                  </el-select>
                </el-form-item>
              </el-col>
            </el-row>
            <el-col :span="24"><el-divider /></el-col>
          </div>
        </el-card>
      </div>
      <!-- 远程心电图-End -->
    </el-form>

    <!-- <div v-for="(item, index) in accessory_examination" id="vs" :key="index" class="tab-pane smtz">
			<el-card shadow="never">
			</el-card>
		</div> -->

    <div id="dialog-group">
      <!-- 心电图 -心电印象 -->
      <el-dialog title="印象" :visible.sync="ECG_impression_dialog">

        <span v-if="ecgModel.length > 0">
          <span v-if="ecgModel[0].type == '1'">
            <el-radio-group v-model="ECG_pop_data.impression" class="impress-btn-group" size="small">
              <el-radio v-for="(item, index) in ecgModel" :key="'ecg' + index" :label="item.name" border>{{ item.name
              }}</el-radio>
            </el-radio-group>
          </span>
          <span v-if="ecgModel[0].type == '2'">
            <el-checkbox-group v-model="ECG_pop_data.impression" class="impress-btn-group" size="small">
              <el-checkbox v-for="(item, index) in ecgModel" :key="'ecg' + index" :label="item.index" border>{{
                item.name
              }}</el-checkbox>
            </el-checkbox-group>
          </span>
        </span>
        <span v-else>
          <b>未获取到印象模板</b>
        </span>

        <!-- <el-checkbox-group v-model="ECG_pop_data.impression" class="impress-btn-group" size="medium">
          <el-checkbox label="ST段抬高大于等于2mv" border />
          <el-checkbox label="ST段压低大于等于2mv" border />
          <el-checkbox label="病理性Q波" border />
          <el-checkbox label="T波异常" border />
          <el-checkbox label="左束支传导阻滞" border />
          <el-checkbox label="右束支传导阻滞" border />
          <el-checkbox label="第Ⅰ导联S波变深,>115mm,第Ⅲ导联出现Q波和T波倒置" border />
          <el-checkbox label="电轴右偏" border />
          <el-checkbox label="电轴左偏" border />
          <el-checkbox label="房性心动过速" border />
          <el-checkbox label="心房颤动" border />
          <el-checkbox label="室性心动过速" border />
          <el-checkbox label="室性期前收缩" border />
          <el-checkbox label="房室传导阻滞" border />
          <el-checkbox label="心肌缺血" border />
          <el-checkbox label="ST段抬高型心肌梗死" border />
          <el-checkbox label="陈旧性心肌梗死" border />
          <el-checkbox label="心房肥大" border />
          <el-checkbox label="心室肥大" border />
          <el-checkbox label="心律失常" border />
          <el-checkbox label="大致正常" border />
        </el-checkbox-group> -->
        <div slot="footer" class="dialog-footer">
          <el-button @click="ECG_impression_dialog = false">取 消</el-button>
          <el-button type="primary" @click="impressSave('ECG_list', 'ECG_impression_dialog', 'ECG_pop_data')">确
            定</el-button>
        </div>
      </el-dialog>
      <!-- 心电图-心电印象-End -->
      <!-- CT -心电印象 -->
      <el-dialog title="印象" :visible.sync="CT_impression_dialog">
        <el-checkbox-group v-model="CT_pop_data.impression" class="impress-btn-group" size="medium">
          <el-checkbox label="主动脉夹层" border />
          <el-checkbox label="肺栓塞" border />
          <el-checkbox label="气胸" border />
          <el-checkbox label="脑梗塞" border />
          <el-checkbox label="脑出血" border />
          <el-checkbox label="蛛网膜下腔出血" border />
          <el-checkbox label="消化道穿孔" border />
          <el-checkbox label="胆囊炎" border />
          <el-checkbox label="肺炎" border />
          <el-checkbox label="心包填塞" border />
          <el-checkbox label="心脏扩大" border />
        </el-checkbox-group>
        <div slot="footer" class="dialog-footer">
          <el-button @click="CT_impression_dialog = false">取 消</el-button>
          <el-button type="primary" @click="impressSave('CT_list', 'CT_impression_dialog', 'CT_pop_data')">确
            定</el-button>
        </div>
      </el-dialog>
      <!-- CT-心电印象-End -->
      <!-- CT_Ult -心电印象 -->
      <el-dialog title="印象" :visible.sync="Ult_impression_dialog">

        <span v-if="ultModel.length > 0">
          <span v-if="ultModel[0].type == '1'">
            <el-radio-group v-model="Ult_pop_data.impression" class="impress-btn-group" size="small">
              <el-radio v-for="(item, index) in ultModel" :key="'ult' + index" :label="item.index" border>{{ item.name
              }}</el-radio>
            </el-radio-group>
          </span>
          <span v-if="ultModel[0].type == '2'">
            <el-checkbox-group v-model="Ult_pop_data.impression" class="impress-btn-group" size="small">
              <el-checkbox v-for="(item, index) in ultModel" :key="'ult' + index" :label="item.index" border>{{
                item.name
              }}</el-checkbox>
            </el-checkbox-group>
          </span>
        </span>
        <span v-else>
          <b>未获取到印象模板</b>
        </span>

        <!-- <el-checkbox-group v-model="Ult_pop_data.impression" class="impress-btn-group" size="medium">
          <el-checkbox label="主动脉夹层" border />
          <el-checkbox label="肺栓塞" border />
          <el-checkbox label="气胸" border />
          <el-checkbox label="脑梗塞" border />
          <el-checkbox label="脑出血" border />
          <el-checkbox label="蛛网膜下腔出血" border />
          <el-checkbox label="消化道穿孔" border />
          <el-checkbox label="胆囊炎" border />
          <el-checkbox label="肺炎" border />
          <el-checkbox label="心包填塞" border />
          <el-checkbox label="心脏扩大" border />
        </el-checkbox-group> -->
        <div slot="footer" class="dialog-footer">
          <el-button @click="Ult_impression_dialog = false">取 消</el-button>
          <el-button type="primary" @click="impressSave('Ultrasound_list', 'Ult_impression_dialog', 'Ult_pop_data')">确
            定</el-button>
        </div>
      </el-dialog>
      <!-- CT_Ult-心电印象-End -->

    </div>
  </div>
</template>

<script>
import { queryAEPost, saveCheckups, getEcgImage, findImpressionClass, modifyMapData } from '@/api/green-channel/tab-request'

export default {
  // 由主页面(父组件) 接收来的, 选择项的数据
  props: ['checkrowdata'], // 由主页面(父组件) 接收来的, 选择项的数据
  data() {
    return {
      dialogVisible: false, // 弹窗标识
      accessory_examination: [],
      /* dialog标识*/
      ECG_impression_dialog: false, //  心电图 - 印象
      CT_Ult_impression_dialog: false, //  CT_ - 印象
      CT_impression_dialog: false, //  CT_ - 印象
      Ult_impression_dialog: false, //  Ult_ - 印象

      /* 根据检查类型筛选数据*/
      ECG_list: [], // 心电图
      CT_list: [], // CT
      Ultrasound_list: [], // 超声
      MRI_list: [], // MRI
      REMOTE_list: [], // 远程心电图
      /* 根据检查类型筛选数据-End*/

      /* 心电印象-弹窗数据*/
      ECG_pop_data: {
        impression: [] // 心电图弹窗 -心电印象
      },
      /* 心电印象-弹窗数据-End*/

      /* CT 印象-弹窗数据*/
      CT_pop_data: {
        impression: [] // CT印象
      },
      /* CT 印象-弹窗数据-End*/
      /* 超声印象-弹窗数据*/
      Ult_pop_data: {
        impression: [] // Ult印象
      },
      /* 超声印象-弹窗数据-End*/
      publicIndex: '', // 当前修改数据元素下标

      newExamine: { // 新增数据
        // image: (binary)
        id: '',
        image: null,
        userId: this.$store.getters.userId,
        dispatchId: this.checkrowdata.dispatchId,
        medicalId: this.checkrowdata.medicalId,
        // imgurl: '',
        impression: '', // （印象）
        uploadTime: '', // （图片上传时间 ）
        inspectionType: '', // （检查类型 例如心电图 超声）
        diagnosticTime: '', // （心电图确诊时间）
        openerTime: '', // （开具单据时间）
        checkPoint: '', // 检查部位
        pathogeny: '', // （病因诊断）
        aspectScore: '', // （ASPECT评分）
        informtime: '', // （通知CT室/超生室时间）
        poisetime: '', // （CT室完成准备时间）
        reporttime: '', // （报告时间）
        reportcontent: '', // （报告内容）
        checkendtime: '', // （检查结束时间）
        aneurysmCount: '', // （动脉瘤数量）
        other_x_type: '0',
        remark: '', // （备注）
        remoteStat: '1', // 远程心电图传输
        remoteTime: '', // 远程心电图时间
        remoteType: '' // 远程心电图传输方式
      },
      ecgModel: [],
      ecgMap: {},
      ultModel: [],
      ultMap: {},
      requireArray: []
    }
  },
  computed: {},
  updated() { },
  created() {
    this.findImpressionClassFun()
    this.getRemote()
    if (this.checkrowdata.diagnoseContent.indexOf('主动脉夹层') !== -1) {
      this.requireArray.push('CT', '超声', 'MRI')
    }
    if (this.checkrowdata.diagnoseContent.indexOf('肺动脉栓塞') !== -1) {
      this.requireArray.push('CT')
    }
    // this.findcheckup()
  },
  methods: {
    handleClick() {
      this.$nextTick(() => {
        const div = document.getElementsByClassName('el-image-viewer__actions__inner')
        const i = document.createElement('i')
        i.className = 'close-icon el-icon-close'
        document.querySelector('.el-image-viewer__close').style.display = 'none'
        div[0].appendChild(i)
        i.addEventListener('click', () => {
          document.querySelector('.el-image-viewer__close').click()
        })
      })
    },
    getRemote() {
      this.REMOTE_list = []
      const data = {
        apiToken: this.$store.getters.apiToken,
        dispatchId: this.checkrowdata.dispatchId,
        intf: 'get_remote_ecg'
      }
      modifyMapData(data).then(res => {
        if (res.code == 0) {
          if (res.data) {
            this.REMOTE_list.push({
              inspectionType: '远程心电图',
              remoteStat: res.data.isRemoteEcgtranChecked,
              remoteTime: res.data.tranDate,
              remoteType: res.data.isRemoteEcgtran
            })
          }
        }
      })
    },
    // 查询心电图模板
    findImpressionClassFun() {
      const data = {
        hospitalId: this.$store.getters.hospitalId,
        greenType: '胸痛'
      }
      findImpressionClass(data).then(res => {
        if (res.code === 0) {
          // let ecg = []
          res.data.forEach((item, index) => {
            //  && item.status === '1'
            if (item.name === '心电图') {
              this.ecgModel = item.impressionclassbList
              this.ECG_pop_data.impression = item.type === '1' ? '' : []
            }
            //  && item.status === '1'
            if (item.name === '超声') {
              this.ultModel = item.impressionclassbList
            }
          })
          if (this.ecgModel[0] && this.ecgModel[0].type) {
            this.ECG_pop_data.impression = this.ecgModel[0].type === '1' ? '' : []
          }
          this.ecgModel.forEach(item => {
            this.ecgMap[item.index] = item.name
          })
          this.ultModel.forEach(item => {
            this.ultMap[item.index] = item.name
          })
          this.findcheckup()
          // console.table(this.ecgMap)
          // console.log(this.ecgMap)
        } else {
          this.$message.error('请求异常')
        }
      }).catch(err => {
        console.log(err)
      })
    },

    impressionMapShow(val, mapName) {
      const that = this
      val = val || ''
      const data = Array.isArray(val) ? val : val.split(',')
      const arr = []
      data.forEach(item => {
        that[mapName][item] &&
          arr.push(that[mapName][item])
      })
      return arr.join(',')
    },
    imgUpload(res, file) {
      console.log(1111111111111111)
      const isJPG = res.raw.type === 'image/jpeg' || res.raw.type === 'image/png'
      const isLt5M = res.raw.size / 1024 / 1024 < 5
      if (!isJPG) {
        return this.$message.error('上传图片只能是 JPG 或 PNG 格式!')
      }
      if (!isLt5M) {
        return this.$message.error('上传图片大小不能超过 5MB!')
      }
      this.$set(this.newExamine, 'imgUrl', URL.createObjectURL(res.raw))
      this.newExamine.image = res.raw
      // 开始更新时间 -心电图
      if(this.newExamine.inspectionType === "心电图"){
        let now_date = new Date()
        let now_date_next = new Date(now_date.getTime()+2*60*1000)
        this.newExamine.uploadTime = this.formatDate(now_date)
        this.newExamine.diagnosticTime =this.formatDate(now_date_next)
      }
    },
    imgModify(res, file, item) {
      const isJPG = res.raw.type === 'image/jpeg' || res.raw.type === 'image/png'
      const isLt5M = res.raw.size / 1024 / 1024 < 5
      if (!isJPG) {
        return this.$message.error('上传图片只能是 JPG 或 PNG 格式!')
      }
      if (!isLt5M) {
        return this.$message.error('上传图片大小不能超过 5MB!')
      }
      item.image = res.raw
      item.imgUrl = URL.createObjectURL(res.raw)
    },
    /*
      * 获取心电图机数据,成功后重新查询页面
    */
    getElectrocardiograph() {
      getEcgImage(this.checkrowdata.patientId).then(res => {
        if (res.code !== 9999) {
          if (res.data.status === 1) {
            this.findcheckup()
          } else {
            this.$message.info('无可获取的心电图数据')
          }
        } else {
          this.$message.error('获取失败')
        }
      }
      )
    },
    /*
      * 保存修改
    */
    saveCheckup(saveData,state) {
      if (saveData.inspectionType == '远程心电图') {
        const data = {
          apiToken: this.$store.getters.apiToken,
          dispatchId: this.checkrowdata.dispatchId,
          intf: 'remote_ecg',
          remote_ecg_stat: saveData.remoteStat,
          remote_ecg_time: saveData.remoteStat == 1 ? saveData.remoteTime : '',
          remote_ecg_way: saveData.remoteStat == 1 ? saveData.remoteType : ''
        }
        modifyMapData(data).then(res => {
          if (res.code == 0) {
            const tips = this.dialogVisible ? '新增' : '保存'
            this.$message.success(tips + '成功')
            this.dialogVisible = false
            this.findcheckup()
            this.getRemote()
          }
        })
      } else {
        // console.log(saveData, 'saveData')
        const formData = new FormData()
        let tempFile
        if (saveData.image) {
          tempFile = saveData.image
          formData.append('reportcontent', saveData.image.name)
          formData.append('image', tempFile)
        } else {
          if(state === 1){
             tempFile = new File([' '], '空图片.png')
             formData.append('imgurl', saveData.imgUrl)
             formData.append('reportcontent', tempFile.name)
             formData.append('image', tempFile)
          }else if(state === 2){

          }
          // if(saveData.inspectionType ==="心电图"){
            
          // }else{
          //   tempFile = new File([' '], '空图片.png')
          //   formData.append('imgurl', saveData.imgUrl)
          // }
          /* 修改时，若图片未更新，额外增加 'imgurl'字段，'image'传空文件*/

        }


        formData.append('id', saveData.id)
        formData.append('userId', parseInt(this.$store.getters.userId))
        formData.append('dispatchId', saveData.dispatchId)
        formData.append('medicalId', saveData.medicalId)
        formData.append('impression', saveData.impression)
        formData.append('uploadTime', saveData.uploadTime)
        formData.append('inspectionType', saveData.inspectionType)
        formData.append('diagnosticTime', saveData.diagnosticTime)
        formData.append('openerTime', saveData.openerTime)
        formData.append('checkPoint', saveData.checkPoint)
        formData.append('pathogeny', saveData.pathogeny)
        formData.append('aspectScore', saveData.aspectScore)
        formData.append('informtime', saveData.informtime)
        formData.append('poisetime', saveData.poisetime)
        formData.append('reporttime', saveData.reporttime)
   
        formData.append('checkendtime', saveData.checkendtime)
        formData.append('remark', saveData.remark)
        formData.append('aneurysmCount', saveData.aneurysmCount)
        formData.append('other_x_type', saveData.other_x_type)
        saveCheckups(formData).then(res => {
          const tips = this.dialogVisible ? '新增' : '保存'
          if (res.code === 0) {
            this.dialogVisible = false
            this.$message.success(tips + '成功')
            this.findcheckup()
            if (this.dialogVisible) {
              this.resetAddForm()
            }
          } else {
            this.$message.warning(tips + '失败')
          }
        })
      }
    },
    /*
      *   弹出框 - 确认
      * listName : 筛选数据list名
      * dialogName :  弹出框 boolean 名
      * popName :  弹出框 数据名
    */
    impressSave(listName, dialogName, popName) {
      const that = this
      if (this.dialogVisible) {
        if (dialogName === 'ECG_impression_dialog' || dialogName === 'Ult_impression_dialog') {
          this.newExamine.impression = that[popName]['impression']
        } else {
          this.newExamine.impression = Array.isArray(that[popName]['impression']) ? that[popName]['impression'].join(';') : that[popName]['impression']
        }
      } else {
        // that[listName][this.publicIndex].impression = that[popName]['impression'].join(';')
        if (dialogName === 'ECG_impression_dialog' || dialogName === 'Ult_impression_dialog') {
          that[listName][this.publicIndex].impression = that[popName]['impression']
        } else {
          that[listName][this.publicIndex].impression = Array.isArray(that[popName]['impression']) ? that[popName]['impression'].join(';') : that[popName]['impression']
        }

        that[popName]['impression'] = Array.isArray(that[popName]['impression']) ? [] : ''
      }
      that[dialogName] = false

      // that[listName][this.publicIndex].impression = that[popName]['impression'].join(';')
      // that[popName]['impression'] = []
      // that[dialogName] = false
    },

    /*
      *   打开对应弹出框弹出框
      * listName : 筛选数据list名
      * impression :  弹出框回显数据, 暂未使用
      * index :  选中数据下标(公共)
    */
    impressPublic(listName, impression, index) {
      // 筛选数据list名,  impression印象值，  index
      const that = this
      that[listName] = true
      this.publicIndex = index
      // this.val = impression.replace(/\[|]/g, '')     //暂不回显
    },

    /*
      *   辅助检查数据查询
    */
    findcheckup() {
      queryAEPost(this.checkrowdata.dispatchId).then(data => {
        // console.log('辅助检查数据', data)
        this.accessory_examination = data
        /* 根据检查类型筛选数据*/
        this.ECG_list = data.filter(ele => ele.inspectionType === '心电图')
        this.CT_list = data.filter(ele => ele.inspectionType === 'CT')
        this.Ultrasound_list = data.filter(ele => ele.inspectionType === '超声')
        this.MRI_list = data.filter(ele => ele.inspectionType === 'MRI')
      })
    },
    requiredCheck() {
      if (this.newExamine.inspectionType == 'CT') {
        let tips = false
        if (this.newExamine.informtime == '' || !this.newExamine.informtime || this.newExamine.informtime.length == 0) {
          tips = '通知CT室时间'
        } else if (this.newExamine.poisetime == '' || !this.newExamine.poisetime || this.newExamine.poisetime.length == 0) {
          tips = 'CT完成准备时间'
        }
        if (tips) {
          this.$message.warning(tips + '不能为空')
          return
        }
      }
      return true
    },
    saveCheck(data,state) {
      console.log('data', data)
      // const data = this.newExamine
      let tips = false
      if (!data.inspectionType) {
        tips = '检查类型'
      } else {
        switch (data.inspectionType) {
          case '心电图':
            if (data.other_x_type != '1') {
              if (!data.uploadTime) {
                tips = '检查开始时间'
                break
              }
              if (!data.diagnosticTime) {
                tips = '诊断时间'
                break
              }
            }
            break
          case 'CT':
            if (!data.uploadTime) {
              tips = 'CT室扫描开始时间'
            }
            break
          case '超声':
            if (!data.uploadTime) {
              tips = '检查开始时间'
            }
            break
          case 'MRI':
            if (!data.uploadTime) {
              tips = '检查开始时间'
            }
            break
          case '远程心电图':
            if (data.remoteStat == 1 && !data.remoteTime) {
              tips = '接收120/网络医院心电图时间'
            }
            if (data.remoteStat == 1 && !data.remoteType) {
              tips = '传输方式'
            }
            break
          default:
        }
        if (data.inspectionType != '远程心电图' && !data.image && !data.imgUrl && data.other_x_type != '1') {
          tips = '检查图片'
        }
      }
      if (tips) {
        this.$message.warning(tips + '不能为空')
        return
      } else if (data.inspectionType == '心电图') {
        if (!data.remark && data.other_x_type == '1') {
          tips = '未获得原因'
          this.$message.warning(tips + '不能为空')
          return
        }
      }
      if (!this.requiredCheck()) {
        return
      }

      if (!data.other_x_type) {
        data.other_x_type = '0'
      }
      // console.log("data", data)
      this.saveCheckup(data,state)
    },
    // 更改下拉时清空弹窗数据
    clearExamineform() {
      this.newExamine.impression = ''
      this.newExamine.uploadTime = ''
      this.newExamine.diagnosticTime = ''
      this.newExamine.openerTime = ''
      this.newExamine.checkPoint = ''
      this.newExamine.pathogeny = ''
      this.newExamine.aspectScore = ''
      this.newExamine.informtime = ''
      this.newExamine.poisetime = ''
      this.newExamine.reporttime = ''
      this.newExamine.reportcontent = ''
      this.newExamine.checkendtime = ''
      this.newExamine.aneurysmCount = ''
    },
    formatDate(date_value){
      return date_value.getFullYear()+"-"+(date_value.getMonth()+1)+"-"+date_value.getDate()+" "+date_value.getHours()+":"+date_value.getMinutes()+":"+date_value.getSeconds()
    }

  }
}
</script>

<style scoped>
.el-checkbox.is-bordered.el-checkbox--medium {
  margin-left: 10px;
}

.pageDateStyle {
  padding: 20px;
}

.AData {
  margin-left: 20px;
}

.dataTitleStyle {
  margin-bottom: 45px;
  line-height: 35px;
}

.impress-btn-group label {
  margin-bottom: 15px;
}

.wid80 {
  width: 80%;
}

.labelHeight {
  line-height: 35px;
}

#addRef .avatar-uploader>>>.el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#addRef .avatar-uploader>>>.el-upload:hover {
  border-color: #409EFF;
}

#addRef .avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}

#addRef .avatar {
  width: 178px;
  height: 178px;
  display: block;
}

.showImgStyle {
  max-height: 251px;
  vertical-align: bottom;
}

.modifyImgBtn {
  position: absolute;
  right: -100px;
  bottom: 0;
}

.required-field:before {
  content: "*";
  color: red;
  margin-right: 2px;
}
</style>
